<template>
  <div class="test-font">
    <teleport :to="t">
      <div>hello teleport</div>
    </teleport>
  </div>
</template>

<script>
import { defineComponent,ref } from "vue";

export default defineComponent({
  setup(){
    const t = ref('#app')
    setTimeout(()=>{
      t.value = '.aaa'
    },5000)

    return {
      t
    }
  }
})
</script>
